package org.monkey.example.request.entity.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.monkey.common.cbs.entity.po.BasePo;
import org.springframework.format.annotation.DateTimeFormat;


@Data
@TableName(value = "base_request_info")
@NoArgsConstructor
@AllArgsConstructor
public class RequestInfoPO extends BasePo {

  @TableField(value = "`start_time`")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startTime;
  @TableField(value = "`request`")
  private String request;
  @TableField(value = "`headers`")
  private String headers;
  @TableField(value = "`response`")
  private String response;
  @TableField(value = "`customer_data`")
  private String customerData;
  @TableField(value = "`end_time`")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endTime;
  @TableField(value = "`ip`")
  private String ip;
  @TableField(value = "`url`")
  private String url;
  @TableField(value = "`http_method`")
  private String httpMethod;
  @TableField(value = "`method_name`")
  private String methodName;
  @TableField(value = "`remark`")
  private String remark;
  @TableField(value = "`tags`")
  private String tags;
}
